<!DOCTYPE html>
<html lang="en"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>历史预测结果查询</title>
    <!-- jquery -->
    <script type="text/javascript" th:src="@{/js/jquery.min.js}"></script>
    <!-- bootstrap -->
    <link rel="stylesheet" type="text/css" th:href="@{/bootstrap/css/bootstrap.min.css}"/>
    <script type="text/javascript" th:src="@{/bootstrap/js/bootstrap.min.js}"></script>
    <!-- layer -->
    <script type="text/javascript" th:src="@{/layer/layer.js}"></script>
    <!-- common.js -->
    <script type="text/javascript" th:src="@{/js/common.js}"></script>
    <script>
        function jump(bool){
            if(bool=='True'){
                window.location.href="/radar/curShow";
            }else {
                window.location.href="/radar/queryShow";
            }
        }
    </script>
</head>
<body>
<!--<p th:text="${user.uName}"></p>-->
<div class="panel panel-default">

    <div class="panel-heading">
        <button id="ssyc" onclick="jump('True')">实时预测</button>
        <button id="lscx" onclick="jump('False')">历史查询</button>
    </div>

    <div>
        <tr>
            <td>时间的格式为：YearMonDayHourMin</td>
        </tr>
    </div>

    <table class="table" id="goodslist">
        <form th:action="@{/radar/historyShow}" method="get">
            起始时间：<input name="start_time" type="text"><br>
            终止时间：<input name="end_time" type="text"><br>
            查询页码: <input name="page" type="text"><br>
<!--            单页显示数量：<input name="pageSize" type="text"><br>-->
            <input type="submit">
        </form>
<!--        <tr>-->
<!--            <td>时间</td>-->
<!--            <td>预测1</td>-->
<!--            <td>预测2</td>-->
<!--&lt;!&ndash;            <td>秒杀价</td>&ndash;&gt;-->
<!--&lt;!&ndash;            <td>库存数量</td>&ndash;&gt;-->
<!--&lt;!&ndash;            <td>详情</td>&ndash;&gt;-->
<!--        </tr>-->
<!--        <tr th:each="radar: ${curRadars}">-->
<!--            <td th:text="${radar.time}"></td>-->
<!--            <td><img th:src="@{${radar.cur6}}" width="100" height="100"/></td>-->
<!--            <td><img th:src="@{${radar.cur12}}" width="100" height="100"/></td>-->
<!--&lt;!&ndash;            <td th:text="${goods.goodsPrice}"></td>&ndash;&gt;-->
<!--&lt;!&ndash;            <td th:text="${goods.seckillPrice}"></td>&ndash;&gt;-->
<!--&lt;!&ndash;            <td th:text="${goods.stockCount}"></td>&ndash;&gt;-->
<!--&lt;!&ndash;            <td><a th:href="'/goods/toDetail/'+${goods.id}">详情</a></td>&ndash;&gt;-->
<!--        </tr>-->
    </table>
</div>
</body>
</html>